package com.CST.service.cb;
import com.CST.common.api.Response;
import com.CST.entity.cb.BdDepartment;
import com.CST.vo.cb.BdDepartmentVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
/**
 * <p>
 * 核算科室 服务类
 * </p>
 * @author ly
 * @since 2021-09-23
 */
public interface IBdDepartmentService extends IService<BdDepartment> {

    List<BdDepartment> getDepartmentSource(BdDepartment entity);

    List<BdDepartment> getDepartmentSourceWithOrganization(BdDepartment entity);

    List<BdDepartment> getDepartmentOrganization(BdDepartment entity);

    List<BdDepartment> getCostDepartments(BdDepartment entity);

    Response addDepartment(BdDepartment entity);

    Response modifyDepartment(BdDepartment entity);

    boolean updateRowStatusById(Integer id,String rowStatus);

    boolean deleteById(Integer id);

    String getMaxDeptCode(BdDepartment entity);

    BdDepartmentVO  getCostDepartment();
}
